SftTree/NET 2.0

Image Property, ItemClass Class

Softel vdm, Inc.

Defines the item image displayed in this item.

Syntax      ItemClass Class (Softelvdm.SftTreeNET)

VB   

Public Property Image As Image

C#   

public Image Image { get; set; }

C++   

public: property Image^ Image {
        Image^ get();
        void set(Image^ value);
}

Property Value

The item image.

Comments

The Image property defines the item image displayed in this item.

An item image is an optional image displayed in the hierarchy area.

Optional default images can be defined using the ItemExpandableImage, ItemExpandedImage and ItemLeafImage properties.

When default item images are defined using the ItemExpandableImage, ItemExpandedImage, ItemLeafImage or when item images are defined using the Image property, the ItemImageArea property is automatically updated to reserve sufficient space for any of the images used.

Sample images can be found in the directory C:\Program Files\Softelvdm\SftTree NET 2.0\Images.  E.g., FolderClosed1_16.png, FolderOpen1_16.png and Leaf1_16.png contain suitable sample images for the ItemExpandableImage, ItemExpandedImage and ItemLeafImage properties.


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com